package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.entity.Spu;
import com.leyou.pojo.dto.ParamDTO;
import com.leyou.pojo.dto.SpuDTO;

import java.util.List;

public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> findSpuPage(Long brandId, Long categoryId, Long id, Integer page, Integer rows, Boolean saleable);

    void addGood(SpuDTO spuDTO);

    List<ParamDTO> findParamBySpuId(Long id, Boolean searching);

    void updateSaleableById(Long id, Boolean saleable);

    SpuDTO queryInfoBySpuId(Long id);

    SpuDTO querySpuById(Long id);

    void updateGoods(SpuDTO spuDTO);
}
